﻿Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
Imports System.Data

Namespace DataAccess
    Public Class AdvertiseData
        Public Shared Sub Save(ByVal _Advertise As ModelLayer.IAdvertise)
            Using oDm As New DataManager()
                oDm.CommandType = CommandType.StoredProcedure
                oDm.Add("@ContactName", SqlDbType.NVarChar, 50, _Advertise.ContactName)
                oDm.Add("@CompanyName", SqlDbType.NVarChar, 50, _Advertise.CompanyName)
                oDm.Add("@Description", SqlDbType.NVarChar, 4000, _Advertise.Description)
                oDm.ExecuteNonQuery("stp_Add_Advertisement")
            End Using
        End Sub
    End Class
End Namespace